package com.wavehi.yaml;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class YamlApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext run = SpringApplication.run(YamlApplication.class, args);
        String[] names = run.getBeanDefinitionNames();
        for (String name : names) {
            System.out.println(name);
        }
        System.out.println(run.containsBean("yamlData"));
        System.out.println(run.getBean("yamlData"));

    }

}
